package io.github.talelin.latticy.bo;

import com.baomidou.mybatisplus.annotation.TableField;
import io.github.talelin.latticy.model.BannerDO;
import io.github.talelin.latticy.model.BannerItemDO;
import io.github.talelin.latticy.model.CategoryDO;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

import java.beans.Transient;
import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
public class CategoryWithChildBO extends CategoryDO{

    private Long id;

    private String name;

    private String description;

    private Integer isRoot;

    private Integer parentId;

    private String img;

    @TableField(value = "`index`")
    private Integer index;

    private List<CategoryWithChildBO> childList = new ArrayList<CategoryWithChildBO>();


}
